<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:th="http://www.thymeleaf.org">
<head>
    <title>Teacher List</title>
</head>

<body>
<h1>Teacher List</h1>
<table border="1">
    <thead>
    <tr>
        <th th:text="编号" />
        <th th:text="姓名" />
        <th th:text="性别" />
    </tr>
    </thead>
    <tbody>
    <tr th:each="teacher: ${teachers}">
        <td th:text="${teacher.id}" />
        <td th:text="${{teacher.name}}" />

        <td><span th:if="${teacher.gender == 'F'}">Female</span> <span
                th:unless="${teacher.gender == 'F'}">Male</span></td>


    </tr>
    </tbody>
</table>

</body>
</html>